package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author:Domen
 * @Date:2023/11/8 15:23
 */

@Data
public class User {
    private Integer id;
    private String name;
    private String username;
    private Integer age;
    private String sex;
    private String phone;
    private String address;
    //时间格式一般是前端处理，这里为了方便在后端处理了
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date updateTime;
    private Integer account;
    private boolean status;

    private Integer score;

}
